<div style="font-size:16px;font-weight:bold;padding:10px;margin:10px 0">THÊM TIN MỚI [ <a href="news_admin.html">Quản trị tin</a> ]</div>

<table cellSpacing="0" cellPadding="5" width="100%" border="0">
   <tr>
        <td colspan="2" align="left" valign="top" >{$msg}<span class="smalldetailnew"></span>                </td>
    </tr>
    <tr>
        <td align="right" valign="top" ><strong>Danh m&#7909;c</strong></td>
        <td width="80%" align="left">
        <select name="news_catid" id="news_catid" style="width:300px">
          {$news_catid_option}
        </select>                </td>
    </tr>
    <tr align="left">
      <td align="right" valign="bottom" ><strong>Lo&#7841;i tin:</strong></td>
      <td valign="bottom" >
              <input type="checkbox" value="1" id="hot" name="hot" {$checked} />  
              <strong><label for="hot">Tin hot</label></strong>
              <input name="focus" type="checkbox" id="focus" value="1" {$focus_checked} />
              <strong><label for="focus">Tin n&#7893;i b&#7853;t</label></strong></td>
    </tr>
    <tr>
      <td align="right" valign="top" ><strong>tr&#7841;ng th&aacute;i tin</strong></td>
      <td align="left">
        <select name="status" id="status"  style="width:100px;">
          {$status_option}
        </select>           	  </td>
    </tr>
    <tr align="left">
      <td align="right" valign="top" ><strong>&#7842;nh &#273;&#7841;i di&#7879;n</strong></td>
      <td align="left"><img src="style/images/no-images-69x53.jpg" id="src_main_image" width="150" style="border:1px solid #ccc;padding:2px"/><br />
      {$delete}<br  />
      <input  name="main_image" type="file" id="main_image" onchange="src_main_image.src = 'file:///'+this.value" /></td>
  </tr>
    <tr align="left">
      <td align="right" ><strong>Ti&ecirc;u &#273;&#7873; &#7843;nh</strong></td>
      <td align="left"><input  type="text" value="{$image_title}" name="image_title" id="image_title" maxlength="255" /></td>
    </tr>
    
    <tr align="left">
      <td align="right" ><strong>B&uacute;t danh:</strong></td>
      <td align="left"><input type="text" value="{$pen_name}"  name="pen_name" size="20" id="pen_name" maxlength="255" /></td>
    </tr>
    <tr align="left">
      <td align="right" ><strong>Ngu&#7891;n tin:</strong></td>
      <td align="left"><input type="text" value="{$source}"  name="source" size="20" id="source" maxlength="255" />
          <input name="get_source" type="checkbox" id="get_source" value="1" />
          <strong>L&#7845;y c&aacute;c ngu&#7891;n &#7843;nh</strong> </td>
    </tr>
    <tr align="left">
      <td colspan="2" align="left" ><strong>Ti&ecirc;u &#273;&#7873; tin</strong></td>
    </tr>
    <tr align="left">
        <td colspan="2" align="left" ><input type="text" style="width:60%;" value="{$title}" name="title" id="title" maxlength="255" ></td>
    </tr>
    <tr align="left">
      <td colspan="2" align="left" valign="top" ><strong>N&#7897;i dung t&oacute;m t&#7855;t (255 ký tự)</strong></td>
    </tr>
    <tr align="left">
        <td colspan="2" align="left" valign="top" >
         
         <textarea id="brief" name="brief"  style="width:800px" rows="5" >{$brief}</textarea>                
   	  </td>
    </tr>
    <tr align="left">
      <td align="right" >&nbsp;</td>
      <td align="left"><input type="submit" value="Cập nhật" />
        &nbsp;&nbsp;&nbsp;&nbsp;
        <input  name="Reset2" type="reset" value="Nhập lại" /></td>
    </tr>
    <tr>
        <td colspan="2" align="left" valign="middle" ><strong>N&#7897;i dung tin</strong></td>
    </tr>
    <tr align="left">
        <td align="left" colspan="2">
         <textarea id="content" name="content" style="height:400px; width:99%;" class="tinymce">{$content}</textarea>
          </td>
  </tr>
  <tr align="left">
    <td width="20%" align="right">&nbsp;</td>
    <td align="left">&nbsp;</td>
  </tr>
  <tr align="left">
        <td align="right" >&nbsp;</td>
        <td align="left"><input type="submit" value="C&#7853;p nh&#7853;t">
&nbsp;&nbsp;&nbsp;&nbsp;
                         <input  name=Reset type="reset" value="Nh&#7853;p l&#7841;i">                </td>
  </tr>
 </table>
<script type="text/javascript" src="javascript/tinymce336/jquery.tinymce.js"></script>
		
{literal}
<script>
jQuery(document).ready(function(){
	jQuery('textarea.tinymce').tinymce({
		// Location of TinyMCE script
		script_url : 'javascript/tinymce336/tiny_mce.js',
		// General options
		theme : "advanced",
		//plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
	 	plugins : "safari,fullscreen,inlinepopups,paste",
		// Theme options
		theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,bullist,numlist,fontselect,fontsizeselect,forecolor,backcolor,|,link,unlink,pasteword,removeformat,fullscreen",
		theme_advanced_buttons2 : "",
		theme_advanced_buttons3 : "",
		theme_advanced_buttons4 : "",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing : true,
		theme_advanced_resize_horizontal : false,
		theme_advanced_fonts : "Arial=arial,helvetica,sans-serif;Verdana=verdana,geneva;Times New Roman=times new roman,times;Tahoma=tahoma,arial,helvetica,sans-serif;",
		theme_advanced_font_sizes : "3,4,5,6",
	 
		// Example content CSS (should be your site CSS)
		content_css : "css/content.css",
	 
		// Drop lists for link/image/media/template dialogs
		template_external_list_url : "lists/template_list.js",
		external_link_list_url : "lists/link_list.js",
		external_image_list_url : "lists/image_list.js",
		media_external_list_url : "lists/media_list.js",

        force_br_newlines : true,
        force_p_newlines : true,
	 
		// Replace values for the template plugin
		template_replace_values : {
			username : "Some User",
			staffid : "991234"
		}
	});
});	
</script>
{/literal}